

package com.maoshi.shop.user.comment.enums;

/**
 * 满减规则
 *
 */
public enum UserLevelType {
	/** 普通会员 */
	ordinary(0),

	/** vip会员 */
	vip(1),
	;

	private Integer num;

	public Integer value() {
		return num;
	}

	UserLevelType(Integer num){
		this.num = num;
	}

	public static UserLevelType instance(Integer value) {
		UserLevelType[] enums = values();
		for (UserLevelType statusEnum : enums) {
			if (statusEnum.value().equals(value)) {
				return statusEnum;
			}
		}
		return null;
	}
}
